package cn.mineserv.video.videoordersystem.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "media")
public class Media implements Serializable {
    @TableId(value = "media_id", type = IdType.AUTO)
    private Integer mediaId;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "category_id")
    private Integer categoryId;

    @TableField(value = "history_id")
    private Integer historyId;

    @TableField(value = "favorite_id")
    private Integer favoriteId;

    @TableField(value = "report_id")
    private Integer reportId;

    @TableField(value = "media_name")
    private String mediaName;

    @TableField(value = "media_cover")
    private String mediaCover;

    @TableField(value = "media_intro")
    private String mediaIntro;

    @TableField(value = "media_download")
    private String mediaDownload;

    @TableField(value = "media_tag")
    private String mediaTag;

    @TableField(value = "media_upload_time")
    private Date mediaUploadTime;

    @TableField(value = "media_duration")
    private Date mediaDuration;

    @TableField(value = "media_type")
    private Integer mediaType;

    @TableField(value = "media_like")
    private Integer mediaLike;

    @TableField(value = "media_status")
    private Integer mediaStatus;

    private static final long serialVersionUID = 1L;

    public static final String COL_MEDIA_ID = "media_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_CATEGORY_ID = "category_id";

    public static final String COL_HISTORY_ID = "history_id";

    public static final String COL_FAVORITE_ID = "favorite_id";

    public static final String COL_REPORT_ID = "report_id";

    public static final String COL_MEDIA_NAME = "media_name";

    public static final String COL_MEDIA_COVER = "media_cover";

    public static final String COL_MEDIA_INTRO = "media_intro";

    public static final String COL_MEDIA_DOWNLOAD = "media_download";

    public static final String COL_MEDIA_TAG = "media_tag";

    public static final String COL_MEDIA_UPLOAD_TIME = "media_upload_time";

    public static final String COL_MEDIA_DURATION = "media_duration";

    public static final String COL_MEDIA_TYPE = "media_type";

    public static final String COL_MEDIA_LIKE = "media_like";

    public static final String COL_MEDIA_STATUS = "media_status";
}